<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New User Registration</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
</head>

<body  background="../images/books11.jpg">
<?php
session_start();
?>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="container">

<form action="newuser_save.php" method="post">
<center><h1>User Registration Form </h1>
 
</center>
<center>
  <table width="502" height="341" align="center"  bgcolor="#000000">

    <tr>
	 <td width="151" height="45" >Name</td>
    <td width="380"><input type="text"  name="custname"/></td>
  </tr>	
  <tr>
    <td height="42">Address</td>
   <td width="380"><input type="text" name="addrss"/></td>
 
  </tr>
  <tr>
    <td height="38">Email</td>
   <td width="380"><input type="text"  name="email"/></td>
   
  </tr>
  <tr>
    <td height="45">Password</td>
   <td width="380"><input type="password"  name="passw"/></td>
   
  </tr>
  <tr>
    <td height="41">Confirm Password</td>
   <td width="380"><input type="password"  name="cpassw"/></td>
   
  </tr>
  <tr>
    <td height="43">Date Of Birth</td>
   <td width="380"><input type="text"  name="dob"/></td>
   
  </tr>
  <tr>
    <td height="43">Gender</td>
   <td width="380"><input type="radio"  name="gender" value="Male"/>Male
   				  <input type="radio"  name="gender" value="Female"/>Female
	  </td>
   
  </tr>

</table></center>
<?php
if(isset($_REQUEST['submit']))
{
$cust_name=$_REQUEST['custname'];
$_SESSION['cust_name']=$cust_name;
$address=$_REQUEST['addrss'];
$_SESSION['address']=$address;
$email=$_REQUEST['email'];
$_SESSION['email']=$email;
$passwd=$_REQUEST['passw'];
$_SESSION['passwd']=$passwd;
$dob=$_REQUEST['dob'];
$_SESSION['dob']=$dob;
$gender=$_REQUEST['gender'];
$_SESSION['gender']=$gender;
header("location:newuser_save.php");
}
?>
<center><input name="submit" type="submit" id="submit" value="Submit"  /></center>

</form>
</div>
</body>
</html>